-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(fe): use tanstack query for settings page #2308
base: main
Are you sure you want to change the base?
Conversation
The preview deployment is ready. 🟢 Open Preview | Open Build Logs Last updated at: 2025-01-20 16:20:34 CET |
Preview에서 실행했을 땐 에러가 발생하지 않는데 재현 영상이 있을까요?? |
if (!isLoading && defaultProfileValues.major) { | ||
console.log('Setting majorValue:', defaultProfileValues.major) | ||
setMajorValue(defaultProfileValues.major) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (!isLoading && defaultProfileValues.major) { | |
console.log('Setting majorValue:', defaultProfileValues.major) | |
setMajorValue(defaultProfileValues.major) | |
if (defaultProfileValues.major) { | |
setMajorValue(defaultProfileValues.major) |
console.log 지워주세요!
isLoading
값을 사용할 필요는 없는 것 같아요!
updateNow: Boolean(updateNow), | ||
isLoading | ||
updateNow: Boolean(updateNow) | ||
//isLoading |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//isLoading |
Description
리팩토링 목적: useEffect를 포함한 API 호출 로직을 Tanstack Query로 관리하기
Additional context
Failed to Load Main Page!
Too many re-renders. React limits the number of renders to prevent an infinite loop.
Before submitting the PR, please make sure you do the following
fixes #123
).